<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .title{
            line-height: 40px;
          
            margin: 50px 30px;
        }
        .block{
            margin: 30px;
        }
        .block input{
            height: 40px;
            line-height: 40px;
            border: 1px solid #ccc;
            outline: none;
            padding-left: 20px;
            border-radius: 5px;
            width: 100%;
            box-sizing: border-box;
            border-radius: 20px;
            color: #ccc;
        }
        .oner{
            display: flex;
            justify-content: space-around;
            color: rgb(0, 162, 255);
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="title">密码登录</div>
        <div class="block">
            <input type="text" placeholder="手机/用户名" v-model="form.phone">
        </div>
        <div class="block">
            <input type="password" placeholder="密码" v-model="form.pass">
        </div>
        <div class="block">
            <input type="button" value="登陆" @click="login">
        </div>
        <div class="oner">
            <div>手机号登陆</div>
            <div>忘记密码</div>
        </div>
    </div>
    
</body>
</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v=new Vue({
        el:'#app',
        data:{
            form:{phone:'',pass:''}
        },
        methods:{
            login(){
                console.log(this.form);
            }
        }
    })
</script>